<template>
  <div class="detall" v-show="detallShow">
    <p>优惠</p>
    <ul>
      <li v-for="item in seller.supports" v-bind:key=item.id>
        {{item.description}}
      </li>
    </ul>
    <p class="hideDetall" v-on:click="hideDetall">^</p>
  </div>
</template>

<script>
import {mapGetters, mapActions} from 'vuex'
export default {
  name: 'Detalls',
  computed: {
    ...mapGetters(['detallShow', 'seller'])
  },
  methods: {
    ...mapActions(['showDetall', 'hideDetall'])
  }
}
</script>

<style scoped lang="less">
.detall{
  position: fixed;
  top: 14%;
  left: 5%;
  z-index: 666;
  width: 85%;
  height: 80%;
  overflow: auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 1px 1px 1px black;
  padding: 10px;
  p{
    font-size: 16px;
    font-weight: bold;
  }
  ul>li{
    font-size: 12px;
    margin-top: 10px;
    margin-left: 10px;
    font-weight: 400;
  }
  .hideDetall{
    position: absolute;
    bottom: 10%;
    left: 45%;
    font-size: 26px;
    font-weight: normal;
  }
}
</style>
